home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / TSMCollation.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  6KB  |  194 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: TSMCollation.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_TSMCollation_h
  11. #define SOM_TSMCollation_h
  12.  
  13.  
  14. #include <som.h>
  15.  
  16. /*
  17.  * -- This emitter treats Method Tokens as Thunks by default.
  18.  * -- Use the sc modifier "nothunks" to change this default
  19.  */
  20. #undef somresolve_
  21. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  22.  
  23. /*
  24.  * Define the class name as an object type
  25.  */
  26. #ifndef TSMCollation
  27. #define TSMCollation SOMObject
  28. #endif
  29. #include <TSMObject.h>
  30.  
  31. /*
  32.  * Start of user-defined types:
  33.  */
  34. #ifndef SOMClass
  35.     #define SOMClass SOMObject
  36. #endif /* SOMClass */
  37. #ifndef SOMObject
  38.     #define SOMObject SOMObject
  39. #endif /* SOMObject */
  40. #ifndef HIWindow
  41.     #define HIWindow SOMObject
  42. #endif /* HIWindow */
  43. #ifndef HIEmbeddingPanel
  44.     #define HIEmbeddingPanel SOMObject
  45. #endif /* HIEmbeddingPanel */
  46.  
  47. /*
  48.  * End of user-defined types.
  49.  */
  50.  
  51. #define TSMCollation_MajorVersion 1
  52. #define TSMCollation_MinorVersion 1
  53.  
  54. /*
  55.  * External name shortening if required
  56.  */
  57. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  58. #define TSMCollationClassData d
  59. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  60. /*--------------Migration------------*/
  61.  
  62. #ifdef OLDIBMSOMAPISUPPORT
  63. #define TSMCollation_classObj somNewClassReference(TSMCollation)
  64. #define _TSMCollation TSMCollation_classObj
  65. #define TSMCollationCClassData TSMCollationClassData
  66. #define TSMCollationNewClass(major,minor) somNewVersionedClassReference(TSMCollation,major,minor)
  67. #endif
  68.  
  69. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  70. #define TSMCollationMetaClass SOMClass
  71.  
  72. #if PRAGMA_ALIGN_SUPPORTED
  73. #  pragma options align=power
  74. #endif
  75.  
  76. /*
  77.  * Declare the class data structure
  78.  */
  79. SOMEXTERN struct TSMCollationClassDataStructure {
  80. #ifdef OLDIBMSOMAPISUPPORT
  81.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  82. #else
  83.     long zero;
  84. #endif
  85.     somStaticClassInfo *sci;
  86.     somDToken        instanceDataToken;
  87.     long reserved [3];
  88.     somMToken DoCollationProcessText;
  89. } SOMDLINK TSMCollationClassData;
  90.  
  91. #if PRAGMA_ALIGN_SUPPORTED
  92. #  pragma options align=reset
  93. #endif
  94.  
  95. #if !defined(TSMCollation_Class_Source) && !defined(SOM_Module_tsmcollation_Source)
  96. #if PRAGMA_IMPORT_SUPPORTED
  97. #pragma import list TSMCollationClassData
  98. #endif
  99. #endif
  100.  
  101.  
  102. /*
  103.  * New macro for TSMCollation
  104.  */
  105. #define TSMCollationNew() somNewObject(TSMCollation)
  106.  
  107. /*
  108.  * Override method: InitializeService
  109.  */
  110. #define TSMCollation_InitializeService(somSelf,ev) \
  111.     TSMObject_InitializeService(somSelf,ev)
  112.  
  113. /*
  114.  * Override method: TerminateService
  115.  */
  116. #define TSMCollation_TerminateService(somSelf,ev) \
  117.     TSMObject_TerminateService(somSelf,ev)
  118.  
  119. /*
  120.  * Override method: ServiceChanged
  121.  */
  122. #define TSMCollation_ServiceChanged(somSelf,ev) \
  123.     TSMObject_ServiceChanged(somSelf,ev)
  124.  
  125. /*
  126.  * Override method: somInit
  127.  */
  128. #define TSMCollation_somInit(somSelf) \
  129.     SOMObject_somInit(somSelf)
  130.  
  131. /*
  132.  * New Method: DoCollationProcessText
  133.  */
  134. typedef OSStatus   (SOMLINK *somTD_TSMCollation_DoCollationProcessText)(TSMCollation *somSelf, Environment *ev,
  135.         CollationRef collationRef,
  136.         CollateOptions options,
  137.         ConstTextObject text,
  138.         TextObjectIndex startIndex,
  139.         TextObjectIndex endIndex,
  140.         TextObject result);
  141. #define somMD_TSMCollation_DoCollationProcessText "::TSMCollation::DoCollationProcessText"
  142. #define TSMCollation_DoCollationProcessText(somSelf,ev,collationRef,options,text,startIndex,endIndex,result) \
  143.     (SOM_Resolve(somSelf, TSMCollation, DoCollationProcessText) \
  144.     (somSelf,ev,collationRef,options,text,startIndex,endIndex,result))
  145. #ifndef SOMGD_DoCollationProcessText
  146.     #if defined _DoCollationProcessText || defined __DoCollationProcessText
  147.         #undef _DoCollationProcessText
  148.         #undef __DoCollationProcessText
  149.         #define SOMGD_DoCollationProcessText 1
  150.     #else
  151.         #define _DoCollationProcessText TSMCollation_DoCollationProcessText
  152.     #endif /* _DoCollationProcessText */
  153. #endif /* SOMGD_DoCollationProcessText */
  154. #ifndef SOM_DONT_USE_INHERITED_MACROS
  155. #define TSMCollation__get_fTSMContext TSMObject__get_fTSMContext
  156. #define TSMCollation__set_fTSMContext TSMObject__set_fTSMContext
  157. #define TSMCollation__get_fStatus TSMObject__get_fStatus
  158. #define TSMCollation__set_fStatus TSMObject__set_fStatus
  159. #define TSMCollation__get_fServiceContext TSMObject__get_fServiceContext
  160. #define TSMCollation__set_fServiceContext TSMObject__set_fServiceContext
  161. #define TSMCollation_EditInlineHole TSMObject_EditInlineHole
  162. #define TSMCollation_FeatureChanged TSMObject_FeatureChanged
  163. #define TSMCollation_ActivateService TSMObject_ActivateService
  164. #define TSMCollation_DeactivateService TSMObject_DeactivateService
  165. #define TSMCollation_ServiceMouseEvent TSMObject_ServiceMouseEvent
  166. #define TSMCollation_ServiceKeyEvent TSMObject_ServiceKeyEvent
  167. #define TSMCollation_ServiceWindowEvent TSMObject_ServiceWindowEvent
  168. #define TSMCollation_HideServiceWindows TSMObject_HideServiceWindows
  169. #define TSMCollation_DoSetCursor TSMObject_DoSetCursor
  170. #define TSMCollation_ReleaseInlineHoles TSMObject_ReleaseInlineHoles
  171. #define TSMCollation_TerminateInput TSMObject_TerminateInput
  172. #define TSMCollation_somUninit SOMObject_somUninit
  173. #define TSMCollation_somDuplicateReference SOMObject_somDuplicateReference
  174. #define TSMCollation_somCompareReference SOMObject_somCompareReference
  175. #define TSMCollation_somRelease SOMObject_somRelease
  176. #define TSMCollation_somFree SOMObject_somFree
  177. #define TSMCollation_somCanDelete SOMObject_somCanDelete
  178. #define TSMCollation_somGetClass SOMObject_somGetClass
  179. #define TSMCollation_somGetClassName SOMObject_somGetClassName
  180. #define TSMCollation_somGetSize SOMObject_somGetSize
  181. #define TSMCollation_somIsA SOMObject_somIsA
  182. #define TSMCollation_somRespondsTo SOMObject_somRespondsTo
  183. #define TSMCollation_somIsInstanceOf SOMObject_somIsInstanceOf
  184. #define TSMCollation_somDispatch SOMObject_somDispatch
  185. #define TSMCollation_somClassDispatch SOMObject_somClassDispatch
  186. #define TSMCollation_somCastObj SOMObject_somCastObj
  187. #define TSMCollation_somResetObj SOMObject_somResetObj
  188. #define TSMCollation_somPrintSelf SOMObject_somPrintSelf
  189. #define TSMCollation_somDumpSelf SOMObject_somDumpSelf
  190. #define TSMCollation_somDumpSelfInt SOMObject_somDumpSelfInt
  191. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  192.  
  193. #endif       /* SOM_TSMCollation_h */
  194.